---
--- Created by heiye.
--- DateTime: 2025/5/7 下午6:33
---

-- 操作的 Key
local key = KEYS[1]
-- 问题ID
local quizId = ARGV[1]
-- 过期时间(秒)
local expireSeconds = ARGV[2]

redis.call("R.SETBIT", key, quizId, 1)

-- 设置过期时间
redis.call("EXPIRE", key, expireSeconds)
return 0